package com.zy.db.enums;

import com.zy.common.core.enums.BaseEnum;
import lombok.Getter;

public enum DbErrorEnums implements BaseEnum {

    ODBC_CONNECTION_ERROR(40001, "ODBC连接数据库失败"),
    PARAM_CLOSE_CONNECT_ERROR(40002, "参数不正确、不能关闭连接"),
    CLOSE_SELECT_ERROR(40004, "ODBC数据库SELECT失败"),
    CLOSE_INSERT_ERROR(40005, "ODBC数据库INSERT失败"),;

    private Integer code;
    private String desc;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    private DbErrorEnums(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
